package cn.edu.zut.sunday.news.service.impl;

import cn.edu.zut.sunday.base.service.impl.GenericServiceImpl;
import cn.edu.zut.sunday.news.dao.NewsRepository;
import cn.edu.zut.sunday.news.domain.News;
import cn.edu.zut.sunday.news.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NewsServiceImpl extends GenericServiceImpl<News, Integer>
  implements NewsService {

    @Autowired
    public void setNewsCategoryRepository(NewsRepository newsRepository){
        this.dao = newsRepository;
    }
}
